package commom;

import interfaces.kernel.JCL_task;

public class JCL_taskImpl implements JCL_task{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	private String name;
	private String method;
	private Object[] parameters;
	private Long time;
	private Class<?> userClass;
	
	public JCL_taskImpl(String id, String name, String method, Object...parameters){
		this.id = id;
		this.name = name;
		this.method = method;		
		this.parameters = parameters;
		
	}

	@Override
	public String getTaskID() {
		// TODO Auto-generated method stub
		return id;
	}

	@Override
	public String getObjectName() {
		// TODO Auto-generated method stub
		return name;
	}

	@Override
	public String getObjectMethod() {
		// TODO Auto-generated method stub
		return method;
	}

	@Override
	public Object[] getMethodParameters() {
		// TODO Auto-generated method stub
		return parameters;
	}

	@Override
	public void setTaskTime(Long time) {
		this.time = time;
		
	}

	@Override
	public Long getTaskTime() {
		// TODO Auto-generated method stub
		return time;
	}

	@Override
	public Class<?> getObjectClass() {
		return this.userClass;
	}
	
	@Override
	public void setObjectClass(Class<?> userClass) {
		this.userClass = userClass;		
	}

	@Override
	public void setObjectName(String name) {
		this.name = name;		
	}

}
